home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Classes / UHMath / UHMath.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-14  |  721 b   |  30 lines

  1. //UHMath.h
  2. //By Murtaza Ziauddin, University of Houston.
  3. //email address ziauddin@tree.egr.uh.edu
  4. //You may freely copy and resuse this code.
  5. //This Object communicates with Mathematica in the Mathlink mode.
  6.  
  7. #import <appkit/appkit.h>
  8. #import "/LocalApps/Mathematica.app/Library/Mathematica/MathLink/Includes/mathlink.h"
  9.  
  10. @interface UHMath:Object
  11. {
  12.     MLINK mlp;
  13.      int code;
  14.     NXStream *stream;
  15.     char *plotErrorText;
  16.     id resultText;
  17.     id resultPSView;
  18. }
  19.  
  20. -init;
  21. -openLink;
  22. -closeLink;
  23. -evaluateExpression:(char *)exp toString:(char **)string;
  24. -evaluateExpression:(char *)exp toText:(id) aText;
  25. -plotExpression:(char *)exp toPSView: aView;
  26. -(char *)plotError;
  27. -evaluateExpressionFrom:sender;
  28. -plotExpressionFrom:sender;
  29.  @end
  30.